package com.ruoyi.mdkt.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gwl
 */
public class GradeUtils {

    private static final List<Integer> GRADE;

    static {
        GRADE = new ArrayList();
        int count = 0;
        for (int i = 1; i <= 120; i++) {
            count += i;
            GRADE.add(count);
        }
    }

    public static int get(int i){
        return GRADE.get(i-1);
    }

}
